package com.example.demothree.dao;

import com.example.demothree.bean.PurchaseItem;
import com.example.demothree.bean.Suppliers;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SuppliersDao extends JpaRepository<Suppliers,Long> {
    @Query("from Suppliers where supplierName = ?1")
    public Suppliers findSuppliersByName(String name);
}
